using System.Transactions;

namespace Dino
{
    internal class TransactionScopeUnitOfWork : UnitOfWork
    {
        public override void Commit()
        {
            using (var scope = new TransactionScope(TransactionScopeOption.Required))
            {
                base.Commit();

                scope.Complete();
            }
        }
    }
}